const Koa = require('koa');
const app = new Koa();
const bodyParser = require('koa-bodyparser'); // 处理post请求，把 koa2 上下文的表单数据解析到
const cors = require('koa2-cors');

const router = require('./router');
// const router = require('./router/indexRinkby');

// x-response-time
app.use(cors());

app.use(bodyParser());

app.use(router.routes());
app.listen(3000);
